package ro.bianca.newums;

public class WrittenExam extends Exam {

	private int grade;
	
	public int getGrade()
	{
		return grade;
	}	
	
	public void setGrade(int grade)
	{
		this.grade = grade;
	}
	
	public boolean isPassed(int grade)
	{
		if (grade >= 5)
			return true; //exam passed
		else
			return false; //exam failed
	}
}
